import React from "react";
import classnames from "classnames";
import "./Icon.scss";

interface IProps {
    name: string;
    className?: string;
}

const Icon: React.FC<IProps> = ({ className, name, ...restProps }) => {
    return (
        <svg
            className={classnames("super-icon", className)}
            aria-hidden="true"
            {...restProps}
        >
            <use xlinkHref={`#${name}`} />
        </svg>
    );
};

export default Icon;
